<?php
/* @var $this CitaController */
/* @var $id INT of PK for Cliente */
/* @var $month INT month number (0 prefixed for 1 decimals)*/
/* @var $day INT day number*/

$this->breadcrumbs=array(
	'Mi Perfil'=>array('cliente/view', 'id'=>$model->idCliente),
	'Mis Citas'=>array('cita/admin','id'=>$model->idCliente),
	'Calendario'=>array('cita/viewCitaCalendar','id'=>$model->idCliente),
	'Citas del Día'
);

$this->widget('zii.widgets.CMenu',array( 
			'htmlOptions' => array( 'class' => 'nav' ),
			'linkLabelWrapper' => 'span',
			'activeCssClass'	=> 'current',
			'items'=>array(
				array('label'=>'Mis Citas', 'url'=>array('admin', 'id'=>$model->idCliente)),		
				array('label'=>'Volver al Calendario', 'url'=>array('viewCitaCalendar', 'id'=>$model->idCliente)),
				array('label'=>'Volver a Perfil', 'url'=>array('cliente/view', 'id'=>$model->idCliente)),
			),
		));

?>
<br>
<br>
<p>
Por favor seleccione una hora <font color=green>disponible</font>
</p>

<div style="margin-left:100px;">
<?php 
$currentDate = new DateTime();
$currentDate->setTimeZone(new DateTimeZone("America/Costa_Rica"));
$currentDate->setDate($year,$month,$day);

$this->widget('ecalendarview.ECalendarView', array(
  'id' => 'monthCalendar',
  'itemView' => '_viewCalendarDay',
  'cssFile' => 'css/calendar.css',
  'ajaxUpdate' => true,
  'dataProvider' => array(
    'pagination' => array(
      'currentDate' => $currentDate,
      'pageSize' => 'day',
      'pageIndex' => 0,
      'pageIndexVar' => 'MyCalendar_page',
      'isMondayFirst' => true,
    )
  ),
  'idCliente' => $model->idCliente,
)); ?>
</div>